Extends
- Backbone.Model
Methods
(private) __loadDemoCommunityJSON() → {Object}
前端生成的测试数据加载方法。
- Source:
Returns:
- Type
- Object
getCommunityArray(filterOptions) → {Array.<Community>}
获得所有Community的数组。可使用filter对象进行community的属性过滤。最好不要直接访问CommuinitySet的communities成员,因为该方法会解决前端删除等一些缓存操作的适配问题。
Parameters:
| Name | Type | Description |
|---|---|---|
filterOptions |
* | 过滤设置 |
- Source:
Returns:
所有Community的数组
- Type
- Array.<Community>
getNumberOfCommunities() → {number}
获得Community的个数。
- Source:
Returns:
该CommunitySet中Community的个数
- Type
- number
layout(options)
重新计算Community的布局,会直接修改内部每个Community的视觉属性。
Parameters:
| Name | Type | Description |
|---|---|---|
options |
布局参数设置 |
- Source: